Optimal. Leaf size=131 \[ \frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}+\frac {b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3398, 3389,
2212} \begin {gather*} \frac {b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,-\frac {f (c+d x)}{d}\right )}{2 f}+\frac {b e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {a (c+d x)^{m+1}}{d (m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2212
Rule 3389
Rule 3398
Rubi steps
\begin {align*} \int (c+d x)^m (a+b \sinh (e+f x)) \, dx &=\int \left (a (c+d x)^m+b (c+d x)^m \sinh (e+f x)\right ) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+b \int (c+d x)^m \sinh (e+f x) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {1}{2} b \int e^{-i (i e+i f x)} (c+d x)^m \, dx-\frac {1}{2} b \int e^{i (i e+i f x)} (c+d x)^m \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {b e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}+\frac {b e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 17.29, size = 201, normalized size = 1.53 \begin {gather*} \frac {e^{-\frac {3 c f}{d}} (c+d x)^m \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^{-m} \left (\cosh \left (\frac {3 c f}{d}\right )+\sinh \left (\frac {3 c f}{d}\right )\right ) \left (2 a f (c+d x) \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^m+b d (1+m) \left (-\frac {f (c+d x)}{d}\right )^m \Gamma \left (1+m,f \left (\frac {c}{d}+x\right )\right ) (\cosh (e)-\sinh (e)) \left (\cosh \left (\frac {c f}{d}\right )+\sinh \left (\frac {c f}{d}\right )\right )+b d (1+m) \left (f \left (\frac {c}{d}+x\right )\right )^m \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right ) \left (\cosh \left (e-\frac {c f}{d}\right )+\sinh \left (e-\frac {c f}{d}\right )\right )\right )}{2 d f (1+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \left (d x +c \right )^{m} \left (a +b \sinh \left (f x +e \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.06, size = 103, normalized size = 0.79 \begin {gather*} \frac {1}{2} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (\frac {c f}{d} - e\right )} E_{-m}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} - \frac {{\left (d x + c\right )}^{m + 1} e^{\left (-\frac {c f}{d} + e\right )} E_{-m}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} b + \frac {{\left (d x + c\right )}^{m + 1} a}{d {\left (m + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 271 vs.
\(2 (127) = 254\).
time = 0.10, size = 271, normalized size = 2.07 \begin {gather*} \frac {{\left (b d m + b d\right )} \cosh \left (\frac {d m \log \left (\frac {f}{d}\right ) - c f + d \cosh \left (1\right ) + d \sinh \left (1\right )}{d}\right ) \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) + {\left (b d m + b d\right )} \cosh \left (\frac {d m \log \left (-\frac {f}{d}\right ) + c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right ) \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) - {\left (b d m + b d\right )} \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {f}{d}\right ) - c f + d \cosh \left (1\right ) + d \sinh \left (1\right )}{d}\right ) - {\left (b d m + b d\right )} \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {f}{d}\right ) + c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right ) + 2 \, {\left (a d f x + a c f\right )} \cosh \left (m \log \left (d x + c\right )\right ) + 2 \, {\left (a d f x + a c f\right )} \sinh \left (m \log \left (d x + c\right )\right )}{2 \, {\left (d f m + d f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (a+b\,\mathrm {sinh}\left (e+f\,x\right )\right )\,{\left (c+d\,x\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________